import request from '@/plugin/axios'
import { sysPath } from '@api/sys.common'

export function findAllListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/findAllListByPage',
        method: 'post',
        params
    })
}
export function findSupplierById(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/findSupplierById',
        method: 'post',
        params
    })
}
export function unenableSupplierInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/unenableSupplierInfo',
        method: 'post',
        params
    })
}
export function enableSupplierInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/enableSupplierInfo',
        method: 'post',
        params
    })
}
export function deleteSupplierInfo(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/deleteSupplierInfo',
        method: 'post',
        params
    })
}
export function addSaveSupplier(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/addSaveSupplier',
        method: 'post',
        data: params
    })
}
export function editSaveSupplier(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/editSaveSupplier',
        method: 'post',
        data: params
    })
}
export function findAllList(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/findAllList',
        method: 'post',
        params
    })
}
export function findAllListEnable(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierInfo/findAllListEnable',
        method: 'post',
        params
    })
}

export function findAllSupplierProductListByPage(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierProduct/findAllListByPage',
        method: 'post',
        params
    })
}
export function addBatchSupplierProductByProductIds(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierProduct/addBatchSupplierProductByProductIds',
        method: 'post',
        params
    })
}
export function editSaveSupplierProduct(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierProduct/editSaveSupplierProduct',
        method: 'post',
        data: params
    })
}
export function deleteSupplierProduct(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierProduct/deleteSupplierProduct',
        method: 'post',
        params
    })
}
export function addBatchSupplierProductBySupplierIds(params) {
    return request({
        url: sysPath + '/hx-mart/api/v1/supplier/supplierProduct/addBatchSupplierProductBySupplierIds',
        method: 'post',
        params
    })
}